package com.ant.storage.controller;


import com.ant.storage.common.PageRequest;
import com.ant.storage.common.ResultPage;
import com.ant.storage.common.ResultVo;
import com.ant.storage.dto.SupplierInformationDto;
import com.ant.storage.dto.SupplierPayDto;
import com.ant.storage.dto.SupplierPayListDto;
import com.ant.storage.service.ISupplierInformationService;
import com.ant.storage.service.ISupplierPayListService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *  供应商消费记录
 * @author melon
 * @since 2022-03-16
 */
@RestController
@RequestMapping("/supplierPayList")
@Api(tags = "供应商消费记录接口")
public class SupplierPayListController {


    @Autowired
    private ISupplierPayListService payListService;

    @ApiOperation(value = "保存供应商供货信息")
    @PostMapping("/addSupplierPay")
    public ResultVo addSupplierPay(@RequestBody List<SupplierPayListDto> dto) {
        payListService.saveSupplierPayList(dto);
        return ResultVo.success("获取成功");
    }

}
